
     public class Circle {
	 // this class should make a circle (in the same way as the class for a rectangle was done) + it should define 
     // minimal square around the given circle.
     public int x1,y1,r;
	 // x1,y1 - coordinates of the center of a circle, r - is the radius of a circle
	 public Circle(int x1,int y1,int r){
	// construct the circle
		 this.x1 = x1;
		 this.y1 = y1;
		 this.r = r;
	 }
	 public Circle moveCircle(int x1, int y1, int delx, int dely){
	 // moving a circle by delx,dely
	int xx1, yy1;
	 xx1=x1+delx;
	 yy1=y1+dely;
	 Circle c1 = new Circle(xx1,yy1,r);
	 System.out.println("now we have center in ("+xx1+", "+yy1+") and radius is still "+r);
	return c1;
	}

	 public  boolean isInside(int x, int y){
	 // checking if the point x,y is inside the circle)
	// x1,y1 - coordinates of the circle, x,y - coordinates of the point, 
	// distance - distance between the point and the center of the circle, r is the radius of the circle;
	int dx, dy;
	double distance;
//	System.out.println("isInside: we are working with the point: "+x+", "+y);
//	System.out.println("the center of a circle is at: "+x1+", "+y1);
	dx=Math.abs(x1-x);
	dy=Math.abs(y1-y);
	distance = Math.sqrt(dx*dx+dy*dy);
//	System.out.println("the distance from the point to the center is "+distance);
	return(distance<=r);
	 }
	 
	 public  Rect boundingBox( ){
		 int rx1,rx2,ry1,ry2;
		 rx1=x1-r;
		 rx2=x1+r;
		 ry1=y1-r;
		 ry2=y1+r;
     	 Rect box = new Rect(rx1, rx2,  ry1, ry2); 
     	 System.out.println("coordinates of a square around the circle are:  ("+rx1+", "+ry1+"),   ("+rx2+", "+ry2+")");
	     return box;
	 }
	}